package router

import (
	"admin/src/control"

	"github.com/gin-gonic/gin"
)

func InitMenus(r *gin.RouterGroup) {
	api := control.MenuController{}
	menusRouter := r.Group("/menus")
	menusRouter.GET("/list", api.GetMenusList)
	menusRouter.POST("/create", api.CreateMenu)
	menusRouter.PUT("/update", api.UpdateMenu)
	menusRouter.DELETE("/delete", api.DeleteMenu)
}
